import Vue from 'vue'
import { Toast } from 'vant'

Vue.use(Toast)

const start = function () {
  return Toast.loading({
    message: '加载中...',
    forbidClick: false,
    overlay: true,
    duration: 0
  })
}
const done = function () {
  return Toast.clear()
}

const reqLoading = {
  start,
  done
}

export default reqLoading
